import { Injectable } from "@angular/core";
import { HttpClientService } from "../../../../services/http-client.service";

@Injectable()
export class FileService {
  constructor(public httpClient: HttpClientService) { }

  // 关联产品列表
  associateList(postbody) {
    return this.httpClient.post(
      "/pms/v1/pension/basicInfo/pensionList",
      postbody
    );
  }
  // 获取附件树
  getFileTree(getBody) {
    return this.httpClient.get("/pms/v1/pension/attach/attachTree", getBody);
  }
  // 获取历史附件信息
  getListAttach(getBody) {
    return this.httpClient.get("/pms/v1/common/fundFile/versions/" + getBody);
  }
  // 删除附件树
  deleteListAttach(getBody) {
    return this.httpClient.put("/pms/v1/common/fundFile/file/" + getBody);
  }
  // 附件说明
  changeFileDesc(putBody) {
    return this.httpClient.put("/pms/v1/pension/attach/updateAttachDesc", putBody);
  }
  // 获取备案机构、受托人、托管人下拉框值
  getDictionary() {
    return this.httpClient.get('/pms/v1/common/dict/getStrustee?sFundType=5');
  }
}
